<?php
/*
# ------------------------------------------------------------------------
# JA Job Board Package
# ------------------------------------------------------------------------
# Copyright (C) 2004-2010 JoomlArt.com. All Rights Reserved.
# @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
# Author: JoomlArt.com
# Websites: http://www.joomlart.com - http://www.joomlancers.com.
# ------------------------------------------------------------------------
*/

// no direct access
defined('_JEXEC') or die('Restricted access');
//Register the session storage class with the loader

define('VIEW_JOBS', 'jajobs');
define('VIEW_RESUMES', 'jaresumes');
define('VIEW_APPLICATION', 'jaapplications');
define('VIEW_POSTS', 'japosts');
define('VIEW_EMPLOYERS', 'jaemployers');
define('VIEW_USERGROUP', 'jausergroup');
define('VIEW_PAYMENT', 'japayment');
define('VIEW_CANDIDATES', 'jacandidates');
define('VIEW_POSTING_PLAN', 'japostingplans');
define('VIEW_PERMISSION', 'japermission');
define('VIEW_CONFIGURATION', 'jaconfiguration');
define('VIEW_CATEGORIES', 'jacategories');
define('VIEW_LOCATION', 'jalocation');
define('VIEW_CREDITS', 'jacredits');
define('VIEW_PAYMENT_CONFIG', 'japaymentconfig');
define('VIEW_LANGUAGE', 'jamanagelang');
define('VIEW_MANAGE_FIELDS', 'jamanagefields');
define('VIEW_FIELDS_LIST', 'jafieldlist');
define('VIEW_CUSTOMTMPL', 'jacustomtmpl');
define('VIEW_CUSTOMCSS', 'jacustomcss');
define('VIEW_TRANSACTIONS', 'jatransactions');

global $frontend_clean_config;

$frontend_clean_config = array(
								VIEW_JOBS=>array(
												'starred'=>array(VIEW_JOBS),
												'duplicate'=>array(VIEW_JOBS, VIEW_EMPLOYERS),
												'save'=>array(VIEW_JOBS, VIEW_EMPLOYERS),
												'save_application'=>array(VIEW_APPLICATION),
												'remove'=>array(VIEW_JOBS)							
												),
								VIEW_RESUMES=>array(
												'save'=>array(VIEW_RESUMES),
												'remove'=>array(VIEW_RESUMES),
												'starred'=>array(VIEW_RESUMES),
												'multi_starred'=>array(VIEW_RESUMES),
												'remove_attach'=>array(VIEW_RESUMES)										
												),

								VIEW_APPLICATION=>array(												
												'save'=>array(VIEW_APPLICATION),
												'remove'=>array(VIEW_APPLICATION)							
												),
								VIEW_EMPLOYERS=>array(												
												'save'=>array(VIEW_EMPLOYERS)
												),
								VIEW_USERGROUP=>array(												
												'save'=>array(VIEW_EMPLOYERS, VIEW_RESUMES)
												),
								VIEW_PAYMENT	=>array(												
												'payment_notify'=>array(VIEW_EMPLOYERS, VIEW_JOBS),
												'posting_plan_checkout_by_credit'=>array(VIEW_EMPLOYERS, VIEW_JOBS),
												),
						);
						
$admin_clean_config = array(
								VIEW_CANDIDATES=>array(
												'save'=>array(VIEW_RESUMES),
												'publish'=>array(VIEW_RESUMES),
												'unpublish'=>array(VIEW_RESUMES),
												'remove'=>array(VIEW_RESUMES)							
												),
								VIEW_EMPLOYERS=>array(
												'save'=>array(VIEW_EMPLOYERS),
												'employer_save'=>array(VIEW_EMPLOYERS),
												'block'=>array(VIEW_EMPLOYERS),
												'unblock'=>array(VIEW_EMPLOYERS),
												'remove'=>array(VIEW_EMPLOYERS)								
												),
								VIEW_POSTING_PLAN=>array(
												'save'=>array(VIEW_POSTS),
												'remove'=>array(VIEW_POSTS),
												'publish'=>array(VIEW_POSTS),
												'unpublish'=>array(VIEW_POSTS)		
												),
								VIEW_PERMISSION=>array(
												'save'=>array(VIEW_JOBS, VIEW_RESUMES, VIEW_APPLICATION, VIEW_EMPLOYERS, VIEW_PAYMENT),
												'save_group'=>array(VIEW_JOBS, VIEW_RESUMES, VIEW_APPLICATION, VIEW_EMPLOYERS, VIEW_PAYMENT)
												),				
								VIEW_CONFIGURATION=>array(												
												'save'=>array(VIEW_JOBS, VIEW_RESUMES, VIEW_APPLICATION, VIEW_EMPLOYERS, VIEW_PAYMENT)
												),
								VIEW_CATEGORIES=>array(												
												'save'=>array(VIEW_JOBS),
												'remove'=>array(VIEW_JOBS),
												'publish'=>array(VIEW_JOBS),
												'unpublish'=>array(VIEW_JOBS),
												),
								VIEW_LOCATION=>array(												
												'save'=>array(VIEW_JOBS, VIEW_RESUMES, VIEW_EMPLOYERS, VIEW_APPLICATION),
												'remove'=>array(VIEW_JOBS, VIEW_RESUMES, VIEW_EMPLOYERS, VIEW_APPLICATION),
												'publish'=>array(VIEW_JOBS, VIEW_RESUMES, VIEW_EMPLOYERS, VIEW_APPLICATION),
												'unpublish'=>array(VIEW_JOBS, VIEW_RESUMES, VIEW_EMPLOYERS, VIEW_APPLICATION),
												),									
								VIEW_CREDITS=>array(												
												'save'=>array(VIEW_POSTS),
												'remove'=>array(VIEW_POSTS),
												'publish'=>array(VIEW_POSTS),
												'unpublish'=>array(VIEW_POSTS),
												),
								VIEW_PAYMENT_CONFIG=>array(												
												'save'=>array(VIEW_POSTS),
												'remove'=>array(VIEW_POSTS),
												'publish'=>array(VIEW_POSTS),
												'unpublish'=>array(VIEW_POSTS),
												),
								VIEW_LANGUAGE=>array(												
												'save'=>array(VIEW_JOBS, VIEW_RESUMES, VIEW_APPLICATION, VIEW_EMPLOYERS, VIEW_PAYMENT)			
												),
								VIEW_MANAGE_FIELDS=>array(												
												'save'=>array(VIEW_JOBS, VIEW_RESUMES, VIEW_APPLICATION, VIEW_EMPLOYERS),
												'publish'=>array(VIEW_JOBS, VIEW_RESUMES, VIEW_APPLICATION, VIEW_EMPLOYERS),
												'unpublish'=>array(VIEW_JOBS, VIEW_RESUMES, VIEW_APPLICATION, VIEW_EMPLOYERS)												
												),
								VIEW_FIELDS_LIST=>array(												
												'save'=>array(VIEW_JOBS, VIEW_RESUMES, VIEW_APPLICATION, VIEW_EMPLOYERS),
												'remove'=>array(VIEW_JOBS, VIEW_RESUMES, VIEW_APPLICATION, VIEW_EMPLOYERS),
												'orderdown'=>array(VIEW_JOBS, VIEW_RESUMES, VIEW_APPLICATION, VIEW_EMPLOYERS),
												'saveorder'=>array(VIEW_JOBS, VIEW_RESUMES, VIEW_APPLICATION, VIEW_EMPLOYERS)													
												),
								VIEW_CUSTOMTMPL=>array(												
												'save'=>array(VIEW_JOBS, VIEW_RESUMES, VIEW_APPLICATION, VIEW_EMPLOYERS, VIEW_PAYMENT)	
												),
								VIEW_CUSTOMCSS=>array(												
												'save'=>array(VIEW_JOBS, VIEW_RESUMES, VIEW_APPLICATION, VIEW_EMPLOYERS, VIEW_PAYMENT)	
												),
								VIEW_TRANSACTIONS=>array(												
												'save'=>array(VIEW_EMPLOYERS),
												'remove'=>array(VIEW_EMPLOYERS),
												'revert'=>array(VIEW_EMPLOYERS),
												),
						);						